// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//VUE核心
import Vue from "vue";
import {sync} from "vuex-router-sync";
//VUE配置
import axios from "axios";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axiosConfig from "./common/axiosConfig";
//插件M
//平滑滚动
require('smoothscroll-polyfill').polyfill();
window.__forceSmoothScrollPolyfill__ = true;
//自定义
import "assets/css/_variable.scss";
import "assets/css/module.scss";

// Enable devtools
Vue.config.devtools = true;
Vue.config.productionTip = false;

Vue.prototype.$http = axios.create(axiosConfig);
Vue.axios = axios;

sync(store, router);

const {state} = store;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
});


